<?php

class Ledger extends AppModel {
	var $name = 'Ledger';	
	public $validate = array(
		'amount' => array(
			'rule'    	=> array('comparison', '>', 0),
            'allowEmpty' => false,
			'message' 	=> 'Must be greater than 0.' 
		), 
		'entry_date' => array(
            'rule'       => 'date',
            'message'    => 'Enter a valid date'
        )
	);

	public $belongsTo = array(
	
		'Organization',
		'Division',
		'Department',
		'Category'
	
	);
	
		
}
?>